<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateHdHistorialTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateHdHistorialLabel_hdHistorialPK_codHistorial}" for="hdHistorialPK_codHistorial" />
                    <h:inputText id="hdHistorialPK_codHistorial" value="#{hdHistorialController.selected.hdHistorialPK.codHistorial}" title="#{bundle.CreateHdHistorialTitle_hdHistorialPK_codHistorial}" required="true" requiredMessage="#{bundle.CreateHdHistorialRequiredMessage_hdHistorialPK_codHistorial}"/>
                    <h:outputLabel value="#{bundle.CreateHdHistorialLabel_fecHistorial}" for="fecHistorial" />
                    <h:inputText id="fecHistorial" value="#{hdHistorialController.selected.fecHistorial}" title="#{bundle.CreateHdHistorialTitle_fecHistorial}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateHdHistorialLabel_estadoHistorial}" for="estadoHistorial" />
                    <h:inputText id="estadoHistorial" value="#{hdHistorialController.selected.estadoHistorial}" title="#{bundle.CreateHdHistorialTitle_estadoHistorial}" />
                    <h:outputLabel value="#{bundle.CreateHdHistorialLabel_observaciones}" for="observaciones" />
                    <h:inputText id="observaciones" value="#{hdHistorialController.selected.observaciones}" title="#{bundle.CreateHdHistorialTitle_observaciones}" />
                    <h:outputLabel value="#{bundle.CreateHdHistorialLabel_hdTickets}" for="hdTickets" />
                    <h:selectOneMenu id="hdTickets" value="#{hdHistorialController.selected.hdTickets}" title="#{bundle.CreateHdHistorialTitle_hdTickets}" required="true" requiredMessage="#{bundle.CreateHdHistorialRequiredMessage_hdTickets}">
                        <f:selectItems value="#{hdTicketsController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{hdHistorialController.create}" value="#{bundle.CreateHdHistorialSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{hdHistorialController.prepareList}" value="#{bundle.CreateHdHistorialShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateHdHistorialIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
